<?php
// +----------------------------------------------------------------------
// | YCMX  [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2023 https://www.fastadmin.net All rights reserved.
// +----------------------------------------------------------------------
// | Author: 王斌
// +----------------------------------------------------------------------

namespace app\admin\model\ycmx;

use think\Model;
use traits\model\SoftDelete;

class Lxr extends Model
{

    use SoftDelete;

    

    // 表名
    protected $name = 'lxr';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = 'deletetime';

    // 追加属性
    protected $append = [

    ];
    


    public function parentNode()
    {
        return $this->belongsTo('Zcdw', 'pid', 'id')->setEagerlyType(0);
        
    }
}